package main

import (
	"fmt"
)

type T1 struct {
	value string
}

func NewT(v string) *T1{
	return &T1{v}
}
func (t *T1) reload(){
	t = &T1{}
	t = NewT("aaa")
}
func main() {
/*	a := NewT("bbb")
	b := NewT("ccc")
	fmt.Println(a)
	a.reload()
	fmt.Println(a,b)*/
	m := make(map[string] *T1)
	m["a"] = &T1{"abc"}
	fmt.Println(m["a"])
	m["a"].value = "bbb"
	fmt.Println(m["a"])

}
